Use AST for python extractor

This removes the need to work around insane compat problems with python
3 and greatly simplifies the code.
Add new extract command

This replaces the use of pybabel to drive extraction.