Python code used to prepare RuSSIR 2013 submission.