added py file with Rift functionality