Adapted bootstrapping procedure to Python 3.4