basic python2 compliance