if ws is a RooWorkSpace and obj an object to be imported to it, ws.import(obj)
will not work in python because import is a reserved keyword in python.
The following however will do the trick:
getattr(ws,'import')(obj)
Defining a power law PDF
...
How to get the normalization value from a RooExtendPdf