Python numerical model for self-actuated, flagellar propulsion