Using map as a bin

can I get sample code of using a bin as a map using python client?

Please see