fixed version checking part, added workaround code for python3: just call on system commands.