Fix util.py for Python2

The previous code caused a "local variable 'raw_input' referenced before assignment" exception.
Merge pull request #54 from henriquegemignani/patch-1

Fix util.py for Python2