finally got the problem when we pip install google-api-python-client then it creates an path entry of /usr/local/lib/python2.7/dist-packages/googleapiclient
so /usr/local/lib/python2.7/dist-packages/ is before /usr/lib/python2.7/dist-packages/ in path which casues the issue. After removing the google-api-python-client it worked fine but I think it has to be fixed in package also so in case of mutiple option in path it should able to figure it out.
finally got the problem when we pip install google- api-python- client then it creates an path entry of /usr/local/ lib/python2. 7/dist- packages/ googleapiclient lib/python2. 7/dist- packages/ is before /usr/lib/ python2. 7/dist- packages/ in path which casues the issue. After removing the google- api-python- client it worked fine but I think it has to be fixed in package also so in case of mutiple option in path it should able to figure it out.
so /usr/local/