Update repl.py

Allow repl to run without device id argument and use autodetection