You need to create a Synth object. The soundfont can be specified when creating said object.
from midi2audio import FluidSynth
fs = FluidSynth("soundfont.sf2")
fs.midi_to_audio('input.mid', 'test.wav')
Make sure your soundfont and input midi files are in the same directory.