I am using Spyder IDE and call the following function in the Ipython shell after defining the input. But, I get the positional argument error! Perhaps something with the arg