[Removals] Removed Python 2 support related stuff

Removed stuff that was used for Python 2 compatibility.