fdesign.arbmagnphase is a MATLAB built-in function that will create a filter that best fits the frequency-response that it is given.
I'd like to implement a similar function in Python. What algorithms are used to synthesize filters based on an arbitrary frequency response?