Update inheritance1.py

No db_session causes error...