In python there is a method on the type int, namely int.from_bytes. It's not a method on a particular int, instead it's a method on the type. E.g.
>>> int.from_bytes(b'\xee\xff',"big")
61183
>>> int.from_bytes
<built-in method from_bytes of type object at 0x107fdb388>
How do I define something like this? Let's say a class called "point" is defined, how do I define something like
>>> point.from_coordinates(3,5)
<__main__.point object at 0x10c0c9310>
>>> point.from_keys(b'\x12\x3e')
<__main__.point object at 0x10bed5890>
? (Assuming points are initialized by some different method.)