python bin operations, class basics, inheritance, methods, scope, shifting