[Python Trik Test] Added read and write functions to encoder module