codejam in python