Mafia is already doing the server hit, so you can just check photocopyMonster instead.
Or have the CLI visible while doing stuff (though that might not be practical).
Or use mafia's faxbot support, which will retrieve a fax seconds after it's placed in the machine, leaving little doubt about what monster it is; maybe you're using some side clans with unique monsters, but then I wouldn't expect the monster to ever change.
Mafia's faxbot support is broken since the chat update. (unless you still use the legacy chat).
Does this script have any purpose now that new chat is supported by mafia? I'm only asking since you asked for this script to go in the list of SVN scripts.