Mcculloch Pitts Model In Python