Import print from the __future__
PEP8 fixes
Port optparse to argparse
Change the shebang to require py2.7

Also, Debian usually wants /usr/bin/python2.7, which does not circumvent
any checks on their side.