Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
That's... probably fine.