Eco simulation in python