Housework/cleanup.
Moved logger in to it's own module.
Moved change group and user to util module.
General PEP8 stuff.