initial commit for python encoder