Create Regex From String Python Example