Decision in python