Python and php update