remove duplicated comparison code and simplified it a lot
remove duplicated comparison code and simplified it a lot

ssato/python-anyconfig,pmquang/python-anyconfig,pmquang/python-anyconfig,ssato/python-anyconfig