remove main function from util.py
move parser to a separate static method