Aditya,
Then you are going to have to be much more explicit about the error you are getting. What does AERROR() tell you? Can you access any of the properties? If it works in VB6 then the same basic code should work in VFP.
Using single letter names for variables in Xbase languages is a very bad thing to do, because they can be confused with workarea aliases. Use oX = createobject() for hacking around testing things and a more meaningful variable name in your real code.
>Yes the type of the variable after a createobject is O ,the VB6 code is similar to what is used in vfp except the keyword set i.e.
>set o=createobject("Logic.comutil")
>o.getappname()
>and lastly all the required python stuff is bundled itself into the dll in question.