Currentcost API in python