python 3 compatibililty
add support for multiple python versions