add max_attempts to inheritance.py (LMS-2130)

@symbolist 
@cpennington 

this adds `max_attempts` to inheritance.py so that xml-authored courses can set this attribute at the sequential level