Wrote Python recursive compiler