A framework for using generic potentials within python