The shell is not Python, and Python is not the shell. You are assuming a correlation which does not exist.