Protect from python errors while building