Convert Struct To Byte Python Code