fix_redundant_calls.py: change argument -duplicates to -targets, and cleaned the code a bit