rewrite clone_forks in python

1 job for refactor_cloning in 13 seconds (queued for 1 second)