Python: Adds Rasmus's suggestion
Python: Adds Rasmus's suggestion

Co-Authored-By: Rasmus Wriedt Larsen <6dfdada9c346ecb5eceda0aac2a0eed555506730@gmail.com>
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql