Rating on Redis - REST API on Flask