Cleaning brush for pipes and ropes