This series is a starting point for splitting up the core module, and at the same time cleaning them up and getting the coding standards up on them. Patch 1: splits the environment function out of core into it's own module Patch 2-6: Cleans up various aspects of the code, including removing static methods and pep8 changes.