Create Regex From String Python Methods