3,5 layer data reduction scripts were failing because of a trailing slash in the output directory argument (os.path.split behaves differently when the arg ends with a slash).
Merge branch 'master' of github.com:lzamparo/SdA_reduce

Conflicts:
	theano_models/SdA/layer_search/submit_reduce_gravity_3layers.sh
	theano_models/SdA/layer_search/submit_reduce_gravity_5layers.sh