[JIT] Fix clang-tidy warnings in jit/python (#47985)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47985
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D25258644
Pulled By: SplitInfinity
fbshipit-source-id: dfc15dc62c148f79f4e99fd058a6bf2d071ccbb5