String Remove Function In Python Syntax Error