Python plugin cleanups

Mostly about coding style.
Fixed Map::clone to also clone background color and layer data format