import pickle

#Exportar
with open( 'example_file.pkl', 'wb' ) as f:
  pickle.dump( "objetos/variáveis", f )

#Importar
with open( 'example_file.pkl', 'rb' ) as f:
  "objetos/variáveis" = pickle.load( f )