In the last 3 weeks, the Freestyle branch received a few commits and merged a bunch of changes in the trunk up to revision 25149.
A new API function Freestyle.getCurrentScene() has been introduced to allow style modules to get access to the current scene, which contains render data, objects, camera, world and so on. Note that calling this function makes sense only when it is called from style modules, since otherwise the “current” scene cannot be defined. The function, if called from within the Python Console for instance, results in an error as follows:
>>> import Freestyle
Traceback (most recent call last):
File “<console>”, line 1, in <module>
TypeError: current scene not available