My python solutions for Facebook Hacker Cup Qualification 2013