I thought this was interesting but the resulting code was so ugly and awkward that I would refrain from using it.  I would just prototype in R and convert to Python rather than using both in this sort of Frankenstein way.