Work around some more Python 3 and Pyramid problems