PyQSOFit: Python code to fit the spectrum of quasars