Create shared python module

The following changes will allow any python script to `import ledger` as long as the created python modules is found in `$PYTHONPATH`.

I am uncertain whether this is the best way to do it, maybe someone with a deeper understanding can comment...

Interestingly running a script with `ledger python` is much faster then running a script which imports ledger with python. Any idea what may cause the longer execution time?