Added python_test, more exclusions

Fixes #289
Fixed git/hg repo tests
Fixed license

Fixes #299
Added python-argparse dependency