Added sigmoid function in Python.