T6199: drop unused Python imports from graphql source
(cherry picked from commit 9b4a3bc54ec6d2ff8e435add5e2de995a54dfc6a)