adding python api utilities