build_wrapper: Fix warnings reported by pylint

Change-Id: I97419df78f0227bb602d810ba1fd17cfc707ba77
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>