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
Fix minor navigation bugs.  Prev and next act now properly handle directives and empty lines