Even closer to the beginning...
from numpy import *
from numpy.random import random, seed
from Mocapy import *
Do you actually have the numpy and Mocapy modules? I'm not familiar with them.
Also, the errors would help people answer your questions, even if you do not understand what they...