Added initial version of setup.py for package installation
Corrected several mistakes in config code as detected by pyflakes
Added instructions to README for installing via setup.py