avoid python errors