Compile Method In Regex Python String Contains A Substring