How to validate a url in Python? (Malformed or not) How to validate a url in Python? (Malformed or not) python python