Multiple Inheritance Program In Python For Prime