Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
I actually prefer the long version in this case.