UTF-8 support, PEP8 reformat and other fixes

Hi,

Last big bunch, to fix some problems, added UTF-8 support for job names and proper e-mail formatting,
and the huge reformat and other PEP8 related fixes.