moving one object's origin

hi everybody,

i have just joined the forum. actually i have been coding python for only 24 hours as of this moment. i am with blender since 2.3X and though generally speaking i am quite pleased with it, there are some points i miss which are available in some other programs. i am an architect in profession and most of these are related to usability as a CAD program.

so i decided to write my own extensions but need some help.

first of all, i wonder if there is a way to change location of one object’s origin without affecting location of object data through python scripting api.

i have some other questions but this is the most urgent one.

thanks a lot…

Something like this :
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_pythonresizerot.htm#centercursor

… or like that :
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_imitshortkey.htm#editmode