little bugs in function.py. Parallel programs A,B,C,D,E,F,G & H to run over 8 cores