fixes for the latest pybibframe/python 3 provided by Uche