Python solutions to problems posted on http://codility.com/