A succinct, pythonic parser + translator solution