Make this work with python 2

Remove the explicit 'python3' declaration in the #!, lists don't have
the .copy() function in them, and we have to change the wway we pick
things out of the config file. Most of it worked out of the box with
python 2.7.6, but now it all does, so everything should be working if
you only have access to python2 or want to install this with python2.
More pep8 compliance

This isn't a real code change, more just a change in how the code is
written. If it doesn't pass a pep8 test then it's not good. Going to set
up a pep8 and `./setup.py test && ./setup.py check` thing for each pull
request and as a pre-commit hook.