janitoring: Fixed whitespace in karma.py

* Added an empty line to make sure there are two empty lines between
  function definitions.

* Fixed some other minor whitespace problems.

Signed-off-by: mr.Shu <mr@shu.io>