Improved test architecture.

* Capture stdout
* Global function for calling command line scripts
* pep8 & camelcase
Merge pull request #88 from lennax/pypi

Improved pymavlink example test