moved data_dir above imports and jvm.start() call, i.e., user only has
to set it once for all the scripts