Pyelasticsearch 0.4 compatibility (fairly urgent)

This will keep people from getting errors when they try to use haystack with yesterday's pyelasticsearch release.