Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
should you be using `getLogger(__name__)`?