wrap ruby in python