made related changes to use partitions in python api
Fixed version number in deprecation string