reformatted admin.py for pep8, and replaced has_python to has_sandbox etc.