Remove multple try snipperts from python