this is ugly ;)  - you can use urlparse:

```python
>>> urlparse.urlparse('udp://213.121.212.345:13243').netloc.split(':')
['213.121.212.345', '13243']
```