frequency.py decode + strip