make the code more pythonic by using a list comprehension and min()
Merge pull request #1 from mapleoin/listcomp

make the code more pythonic by using a list comprehension and min()