Remove dependency on python 2.