Python 3 fix for shell_plus