bug fix making the package incompatible with Python 3.6