cleaned nil.py