Just to get it right, you want to execute python code in a terminal and struggle with indentation? The python shell handles intents via pressing ENTER
please explain yourself further and post a picture or some code, i feel like its hard to understand your question.