Refactor r2pipe python api