Practiced topcoder problems in python