fixed more scoping problems

added import random to nilsim.py
moved the cross function to fakenil.py so it can access the parent
variables