easily parse dsn urls in Python