Changes set_mean func in  pycaffe.py so that it handles None correctly.