Porting Python APIs to Ruby