scipy.arange está depreciado e será removido

You could instead import numpy as np and use the np.arange().
kamal