Tiny fixes found by codacy.
A bit more info about it and travis+codacy integration.