Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
I removed it. We can revert the commit if it turn out that we need it.