@staticmethod
    def escape(data):

        escaped_data = b""
        for byte in data:
            if intToByte(byteToInt(byte)) in APIFrame.ESCAPE_BYTES:
                escaped_data += APIFrame.ESCAPE_BYTE
                escaped_data += intToByte(0x20 ^ byteToInt(byte))
            else:
                escaped_data += intToByte(byteToInt(byte))
                    
        return escaped_data
Deep copy operation on gyp objects such as strings, ints, dicts
dataset/ETHPy150Open thom-nic/python-xbee/xbee/frame.py/APIFrame.escape--crossover with--dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/simple_copy.py/deepcopy