writing script that removes objects in same location

I was wondering how I would begin writing a script that would do the same wort of thing as “Remove Doubles” in Edit Mode, except with objects. This is mainly an exercise in Python scripting, and a GUI is not necessary. I ask here because there are very few decent or in-depth tutorials available on scripting Blender. I am new to programming/scripting, and I would be very grateful to anyone who could point me in the right direction.