My best solution in py3.2