Fixed bug in derivative.py

x and y were being read as y and x respectively