'Returns the X and Y coordinates for this EC point, as native Python
integers
:return:
A 2-element tuple containing integers (X, Y)'

def to_coords(self):

    data = self.native
    first_byte = data[0:1]
    if (first_byte == '\x04'):
        remaining = data[1:]
        field_len = (len(remaining) // 2)
        x = int_from_bytes(remaining[0:field_len])
        y = int_from_bytes(remaining[field_len:])
        return (x, y)
    if (first_byte not in set(['\x02', '\x03'])):
        raise ValueError(unwrap(u'\n                                                                Invalid    EC    public    key    -    first    byte    is    incorrect\n                                                                '))
    raise ValueError(unwrap(u'\n                                                Compressed    representations    of    EC    public    keys    are    not    supported    due\n                                                to    patent    US6252960\n                                                '))
