Inheritance Hackerrank Solution In Python A Namespace