Parallel processes
===

I am curious to know if it is possible to run a python script that calls a function as parallel child processes. I'm not sure I'm using these terms correctly so here's a concept script fashioned from a bash script that does what I'm talking about.

    import Zfunctions as Z
    reload(Z)

    def Parallel():
        statements
        calls to other functions in a general function file Z

    #--------------
    if '__name__' == '__main__':
        # Running this script in a linux cluster with 8 processing node available
        Parallel() &  #1st process sent to 1st processing node
        Parallell() & #2nd process sent to 2nd node
        .
        .
        .
        Parallell() & #8th process sent to 8th node
        wait

Now I know the ampersand (&) and "wait" are wrong here but in the bash it is the way to sent the process to the background and wait for these processes to finish. My question is now, hopefully clearer: Can this be done in python, and if so how?

Any help is appreciated.

/M

 