Fix for axis types string comparision (is vs ==)

"is", identity comparision, isn't the same as equality comparision

http://stackoverflow.com/questions/2988017/string-comparison-in-python-is-vs