Python < 2.7 doesn't support {} in format() strings

Fixes: #5086
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Remove unneeded imports

Signed-off-by: Dan Mick <dan.mick@inktank.com>