Fix #380

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
pylint

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>