adds python inheritence