clean up for python compatability across servers