small compiler implemented in Python