various fixes

PEP8 cleanup
fixed issues where there were missing imports
added some doc strings
fixed exception with the Server info handler