Changed permissions of neurosim.py
Fixed undefined name errors caused by eeecf20