Pai not connecting to IP module after upgrade to 22.04 and python 3.10.6
I am getting the following after updating to Linux 22.04 and python 3.10.6

I am apple to access the IP150 via web and ping it, the problem seems after authentication.

2023-06-12 22:30:40,701 - INFO     - PAI.paradox.connections.connection - Connection established
2023-06-12 22:30:40,701 - INFO     - PAI.paradox.connections.ip.commands - Authenticating with IP Module
2023-06-12 22:30:40,702 - ERROR    - PAI.paradox.connections.ip.connection - Unhandled exception while connecting (try 3/3)
Traceback (most recent call last):
  File "/home/marius/pai/paradox/connections/ip/connection.py", line 30, in connect
    await self._try_connect()
  File "/home/marius/pai/paradox/connections/ip/connection.py", line 121, in _try_connect
    await IPModuleConnectCommand(self).execute()
  File "/home/marius/pai/paradox/connections/ip/commands.py", line 16, in execute
    await self._authenticate_to_ip_module()
  File "/home/marius/pai/paradox/connections/ip/commands.py", line 104, in _authenticate_to_ip_module
    msg = IPMessageRequest.build(
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 356, in build
    self.build_stream(obj, stream, **contextkw)
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 368, in build_stream
    self._build(obj, stream, context, "(building)")
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 2024, in _build
    buildret = sc._build(subobj, stream, context, path)
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 2493, in _build
    return self.subcon._build(obj, stream, context, path)
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 2761, in _build
    return self.subcon._build(obj, stream, context, path)
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 3621, in _build
    return sc._build(obj, stream, context, path)
  File "/home/marius/.local/lib/python3.10/site-packages/construct/core.py", line 722, in _build
    obj2 = self._encode(obj, context, path)
  File "/home/marius/pai/paradox/connections/ip/parsers.py", line 70, in _encode
    return encrypt(obj, context._.password)
  File "/home/marius/pai/paradox/lib/crypto.py", line 233, in encrypt
    rk = _keygen(key)
  File "/home/marius/pai/paradox/lib/utils.py", line 111, in __call__
    if not isinstance(args, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'
2023-06-12 22:30:40,704 - ERROR    - PAI.paradox.paradox - Failed to connect to interface
2023-06-12 22:30:40,704 - ERROR    - PAI - Unable to connect to alarm
^C2023-06-12 22:30:41,123 - INFO     - PAI - Captured signal SIGTERM. Exiting
2023-06-12 22:30:41,123 - INFO     - PAI.paradox.paradox - Disconnecting from the Alarm Panel
2023-06-12 22:30:41,124 - INFO     - PAI.paradox.paradox - Clean Session
2023-06-12 22:30:41,124 - INFO     - PAI.paradox.interfaces.interface_manager - Stopping all interfaces
2023-06-12 22:30:41,124 - INFO     - PAI.paradox.interfaces.interface_manager - Stopping BasicMQTTInterface
2023-06-12 22:30:41,126 - INFO     - PAI.paradox.interfaces.mqtt.core - MQTT Broker Disconnected
2023-06-12 22:30:41,127 - INFO     - PAI.paradox.interfaces.mqtt.core - MQTT loop stopped
2023-06-12 22:30:41,127 - INFO     - PAI - Good bye!
2023-06-12 22:30:41,129 - ERROR    - PAI.paradox.connections.protocols - Connection was closed: None
2023-06-12 22:30:41,130 - ERROR    - PAI.paradox.connections.connection - Connection was lost
2023-06-12 22:30:41,130 - ERROR    - PAI.paradox.connections.protocols - Connection was closed: None
2023-06-12 22:30:41,130 - ERROR    - PAI.paradox.connections.connection - Connection was lost
2023-06-12 22:30:41,130 - ERROR    - PAI.paradox.connections.protocols - Connection was closed: None
2023-06-12 22:30:41,131 - ERROR    - PAI.paradox.connections.connection - Connection was lost
2023-06-12 22:31:10,187 - ERROR    - PAI.paradox.connections.protocols - Connection was closed: None
2023-06-12 22:31:10,187 - ERROR    - PAI.paradox.connections.connection - Connection was lost
2023-06-12 22:31:10,187 - ERROR    - PAI.paradox.connections.protocols - Connection was closed: None
2023-06-12 22:31:10,188 - ERROR    - PAI.paradox.connections.connection - Connection was lost

