Thanks for your advice. I'm glad I already follow those tips.
Some key-phrases that may hint to you that the question is better suited for Code Review are like the following:
"How do I make this code shorter?"
"How can I improve this code?"
"This code does exactly what I want, but it's ugly."
"Do you see anything wrong with this code?"
"How can I make this code more Pythonic?"
"Is there another way to do this other than [method]?"
Don't just act on a hint though; please also read A guide to Code Review for Stack Overflow users.