This is the updated code for the tutorial on https://elitedatascience.com/keras-tutorial-deep-learning-in-python
It is update for Keras version 2.0.8 The accuracy when I ran it was 99.06%
It was run on Ubuntu 16.04 on a server (Xeon processor) using a TensorFlow backend, instead of Theano