Python Get Regex From String