converted bootstrap test to .py for profiling