print() returns None in Python 3. So, you’re trying to concatenate(or add) None with msg, which results in an error.
Try string formatting:
print ("Message from server : {}".format(msg))
3
solved Python 3.3 socket programming error [closed]