Use Regex In If Statement Python String