Moved sockaddr_in functions outside UDTSocket and cdef-ed them

Renamed PythonBufferToBytes -> python_buffer_to_bytes