PEP8 and small simplification on sanitize_url check. Refs #49