Corrected list syntax error in entity.py