run_sweep.py: fix the checking of existing file and generation of paths to save data
run_single.py: reflect last changes of run_sweep.py to run_single.py to keep consistency of both scripts
bpm_experiment.py: move all imports to the top of the file in order to comply with PEP 8 coding style