My solution to checkio (http://www.checkio.org/) , an online python programming judge system.