Topcoder SRM Practice with Python