This file remains polyglot, since the MIA tooling currently is not polyglot.
Testing done:
paulproteus@quantz:/tmp/qa/mia$ PYTHONPATH=../carnivore python2 ./mia-query -n paulproteus >/dev/null ; echo $?
0
Additionally, I confirmed that the output is the same before and after this change, at least for this one specific user that I searched (myself).
Note that in Python 3, it crashes due to "apt_pkg" not being available. That's OK with me.