Prepare for enabling H302 rule(api/image)

Currently H302 rule is ignored by tox. However, this rule should
be enabled. This patch partially fixes this problem to prepare for
H302 rule.

Change-Id: Ieb47937ae222e3ccf8d8c630f344a64db8d256ba
9 files changed