Abstraction Code In Python For Games