shp_funcs.py

minor fixes to shp_funcs, which seems to be broken in bigger ways however
check for __call__ attribute in data.values to distinguish between dict and pandas.Series