fixed scoping problems from nilsim.py

fixed scoping by ensuring all variables were declared. Also fixed the
input into fakenils.py with eval() functions