Improve Embedded Python Support

Discussion:
https://groups.google.com/d/msg/ledger-cli/kq9sKoRX9vw/fmyhvPslzokJ
Merge pull request #330 from eliptus/feature/embedded-python

Improve Embedded Python Support