clean up language in parser
move config parsing functions to standalone
fix some non-Py3 code
how did that typo happen