Use Regex In If Statement Python Syntax