Python 27: tidy and use prime generator

Add prime generator in utils.
Python utils: tidy whitespace
check_all.sh: allow negative integers as answers