Update util.py

Completely redundant parenthesis around conditionals. My guess is that someone with experience in another language did it out of habit.