Compile Method In Regex Python String Split By Space