rest-api: pyflakes fix and remove spurious logging

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>