remove remnants of swig
remove byteswapping code