add max-attempts to inheritance.py (LMS-2130)