W.r.t. the the last question of your original post: There is not enough context in your post to answer your question. If the exception your getting is IndentationError the problem is with the textual structure of your code, that is incorrect indentation of lines.
Good. Just post it here, inline in your message between triple
backticks:
your programme
code here
That way everyone can see it.
And those of us using email instead of the web form can see it.
Also include your complete error output.
From the sounds of it, this is just a user issue, with nothing to do
with “core development”, which is a list about working on the CPython
implementation itself, not using it which is what you’re doing.