Use configparser library for both python2 and 3

ConfigParser of python2 is replaced by configparser in python3, and for
backward compatibility purpose configparser is provided via pypi. Use this
to provide compatibility for both python2 and python3