small changes to pyrt