#This moves the white pawn forward two spaces 
#and puts a button for this on the Object menu
import bpy  
  
class WhitePawnOpener(bpy.types.Operator): 
    """White Pawn Opener"""  #Blender uses this as tool-tip
    bl_idname = "object.whitepawnopener_operator"  
    bl_label = "White Pawn Opener"  
  
    def execute(self, context):  
        context.active_object.location.y += 5.50  
        return {'FINISHED'}  
  
def add_object_button(self, context):  
    self.layout.operator(  
        WhitePawnOpener.bl_idname,  
        text=WhitePawnOpener.__doc__,  
        icon='PLUGIN')  
  
def register():  
    bpy.utils.register_class(WhitePawnOpener)
    bpy.types.VIEW3D_MT_object.append(add_object_button)
	
if __name__ == "__main__":  
    register()