Added encoding.py file