Python code for Kaggle's Christmas 2013 Challenge