message: with statement for pickle filehandlers
diff: @@ -15,12 +15,11 @@ from bark.world.goal_definition import *
  from modules.runtime.commons.parameters import ParameterServer
  def pickle_unpickle(object):
  - f = open('temp.pickle','wb')
  + with open('temp.pickle','wb') as f:
  pickle.dump(object,f)
  - f.close()
  - f = open( 'temp.pickle', "rb" )
  + object = None
  + with open( 'temp.pickle', "rb" ) as f:
  object = pickle.load(f)
  - f.close()
  return object
  