Split off module into separate package.
Add package setup files.
PEP-8 style fixes.