A Python solution to the Top Coder Marketing Problem - http://community.topcoder.com/stat?c=problem_statement&pm=1524&rd=4472