rights, python2 compatibility