independent qmpy module

independent qmpy module
accomodation for python 2/3

accomodation for python 2/3