I have had good results doing bidirectional programming in Tex <=> Python.
Can you give more details? I'm curious