Type object has no attribute objects. 'nonetype' object has no attribute 'create_line'.