#!/usr/local/bin/python3
from types import MethodType

class A(object):
  a = 4
  def __init__(self):
    self.a = 1

class B(A):
  def __init__(self):
    self._a = 0
    super(A, self).__init__()
    #self.a = MethodType(a, self)

  @property
  def a(self):
    return self._a

  def r(self):
    super().a
    #self.a = 2

def a(self):
  return self._a

print(B().r())