internal.py has module-wide dependencies
cleaned up deprecated files