update constants.py - bugs found by pycharm static analysis

don't have mutable default paramas
at getCosts the c was in the wrong scope