indices: fix use of _mapping apis

Fixes https://github.com/elasticsearch/elasticsearch-py/issues/54.