Create Regex From String Python Definition