add python script and little php fix