Php Remove Element From String Python