Cleanup of jasper.py

If cleaned up `jasper.py`.

If have also some questions for futher cleanup.
Can we replace this whole block with with:
```Python
if not os.getenv('JASPER_HOME'):
    os.environ["JASPER_HOME"]  = os.path.abspath(os.path.join(os.path.dirname(__file__)), os.pardir)
```