Python Create Regex From String