fixed a python2.6 bug and also added long to the list of valid numeric variable types