Update Info Function In Python Syntax Error