CodeEval solutions (using python)