Python Create Object With Variable Cost