Duplicate/missing import

There was a duplicate import of the stat module and the import of the traceback module was missing.  traceback is used in the exception handling for the run_command method.