Help identifying parasite or worm in Molly

I've searched high and wide and i can't find any examples that can 100% identify what has infected one of my Mollies.

I noticed yesterday that one of the Molly's eyes was swollen and then at night noticed this worm/parasite protruding from its anus. I tried to get a picture but as it was dark this was the best I could do.

It still seems to be swimming ok but its now just hanging out at the top of the tank and not moving much. The parasite is a dark yellow colour and has little brush like things coming out of the end of it and was moving around.

Just looking for help to identify what it is so that i can know what i need to use to treat it.