Bugfix2

fixed a bug in saltflat to allow it to work in python 2.6,2.7,and 3