added Encoder.py command line tool