Class Inside A Class Python Syntax And Semantics Error