Remove unused import

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Fix canonicalize_hostname()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>