python() & python __anonymous ()

python ()  is shorthand for "python __anonymous ()".  It declares an anonymous
function, which is executed automatically at the end of parsing.
               
               
                for example we can modify package version
python __anonymous () {
    import bb, re
    new_version = '3.0.0'
    bb.data.setVar('PV',new_version,d)