Fix used before defined problems
Fix used before defined problems

antonleykin/InteractiveShell,fhinkel/InteractiveShell,fhinkel/InteractiveShell,antonleykin/InteractiveShell,fhinkel/InteractiveShell,antonleykin/InteractiveShell,fhinkel/InteractiveShell