You could almost certainly achieve that with the implementation of blocks provided by this package:<p><a href="http://pypi.python.org/pypi/withhacks/" rel="nofollow">http://pypi.python.org/pypi/withhacks/</a>