Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
Yes! I'm stupid.