MAINT: attempt py3 compatibility fix