adding methods to pystr