Pure python implemention of thrift in a pythonic way.