Python interface to tx