perftool.py: small cleanups on fx