improve peagun.py