diff --git a/pecan/commands/shell.py b/pecan/commands/shell.py
index <HASH>..<HASH> 100644
--- a/pecan/commands/shell.py
+++ b/pecan/commands/shell.py
@@ -128,6 +128,12 @@ class ShellCommand(BaseCommand):
         exec(
             'from pecan import abort, conf, redirect, request, response'
         ) in locs
+        from pecan import abort, conf, redirect, request, response
+        locs['abort'] = abort
+        locs['conf'] = conf
+        locs['redirect'] = redirect
+        locs['request'] = request
+        locs['response'] = response
 
         # prepare the banner
         banner = '  The following objects are available:\n'
Fix an issue with Python3 compatability in `pecan shell`.