Adding modules for Python 3 compatibility (#22295)
Summary:
To improve the python 3 compatibility and make linter happy.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22295
Reviewed By: zrphercule
Differential Revision: D16024957
Pulled By: houseroad
fbshipit-source-id: c0eddf731891b2f547ba619b3c2f6b2d7a32f034