Python implementation of Teleport