'mem_accesses.py' now separates events per device