Could not get pysrs.py to work. pysrs.py now starts itself under python3. In several places had to make .decode('utf-8') statements because of byte types not being mixable with string types. The socket expects and sends bytes, not strings.
Also when SocketMap.py writes, a final ',' was missing. I attach pysrs.py and SocketMap.py with the adaptations made.
modified_files.zip