Fixed efficiency issue in REPL.py. Evidence codes to be removed parameter must be of type list and not set.