cleaned up scripts.py