py to tr