Converted to a package, switched to python 2.7

Should be able to run in python 2.6, that's the target actually, since
it's the version included in RHEL6, but haven't been able to test it
just yet.