Simple Code For Abstraction In Python