Type object has no attribute objects. 'int' object has no attribute 'append'.