Remove py2 compatibility code.