Pylint/Pyflakes fixes + some usability modifications

Hey,

1. I ran pylint and pyflakes through the code and just fixed the resulting errors. The commit message has some more details.

2. I also fixed a couple of the usability comments I made on the issue tracker. 
  - Re-ordered the database-open menu
  - Added j/k navigation to a couple of the menus

Thanks!
Scott