ran through pylint, fixed some spaces, created main function, renamed some variables
everything works, but can't use web pages authentication, so the only
choice is a stand alone app