Remove unused imports; Use framework Regex() instead of re.xxxxx