Fragment propagation algorithm test python implementation.