Syntax error was caused by the fact that I didn't place an extra closing parentheses for trying to read the request as a float.