I have been playing around with python as I am a beginner in it. I wrote following class Parent which I was reading from Udacity online course.
inheritance.py file
Because you program load itself!
When you run inheritance.py:
import inheritance
So yours prints statement are executed twice.
You do not have import.