libdnf: add support for python2