Delete Element From String Python Functions