fix init of buildbase. fix remaining pep complaints