updated peak.py to match current version, included quote function