Use Regex In If Statement Python Example