PathSpec class for each method
fixed to python27