Whilst trying to communicate with a server by using Python's XML-RPC library:

```
import xmlrpc.client
url = 'https://12345/'

api = xmlrpc.client.ServerProxy(url)
print(api.system.listMethods())

```

I am getting this error:

```
ssl.py  in match_hostname ssl.CertificateError: hostname '12345' doesn't match '*.hostname.com'

```

Obviously, I can alter the source of ssl.py to ignore this, but is there a better way like a parameter I can set etc?