Python version independent unittesting