clean decode.py