When using the commands.getstatusoutput(......) what should the except be? Would OSError work, or should I use IOError because I am trying to manipulate files on a UNIX system? Any help would be appreciated.