python implementation of tango