Php Change Array Values In Foreach In Python For All Selected Lines