Made code more PEP-8 compliant, and restructured it into a Python
package.
Updated Python scripts, so that they can be used as entry points
in setup.py