adding encoding.py