It's called "indexing", or occasionally (as in the formal grammar) "subscription", both in Python and in a wide variety of other languages. And you should read a tutorial, at least far enough to learn how to index sequences, before trying to write socket code.
As a side note, type and id are built-in functions (well, actually, a class and a function), so it's generally not a good idea to hide them with variables of the same name. (As opposed to the more common case of naming a variable list, you're less likely to need these particular functions in everyday code—but it's still confusing if someone asks you to, e.g., print the type of some value and you get an exception saying that int is not callable…)
In python the postfix [0] is short for .__getitem__(0). It gets the first item in an indexable data structure. In this case self.socket.recvfrom(1460) returns a 2-tuple of (string,address) where string is the bytes received and address is the address of the socket sending the data.
typeandidare built-in functions (well, actually, a class and a function), so it's generally not a good idea to hide them with variables of the same name. (As opposed to the more common case of naming a variablelist, you're less likely to need these particular functions in everyday code—but it's still confusing if someone asks you to, e.g., print the type of some value and you get an exception saying that int is not callable…)