@BeforeClass
  public static void setUpPython() throws Exception {
    GeoServerResourceLoader loader = new GeoServerResourceLoader(new File("target"));

    python = new Python(loader);
    GeoserverDataDirectory.setResourceLoader(loader);
  }
 @AfterClass
 public static void tearDownPython() throws Exception {
   GeoserverDataDirectory.setResourceLoader(null);
 }