Javascript-like implicit self and cls variables in Python