Add error handle to vup command.
Refactoring amd make sure to work both python2.7 and python3.3.