edited gbrew.py