The medicine for internal parasites for fish is called Pipzine, or Hex-A-Mit.
It's toxic to inverts, so you either need to feed the medication soaked food extremely carefully (one piece at a time to make sure that no pieces escape and get picked up by an invert), or you remove all you fish...