completed extension manager

Moved extension manager into utils because it is logical. Cleaned up code to be more pep8 compliant.
cleaned up code to be pep8 compliant-ier