MAINT: python 3 compatibility boilerplate