Why are those two scripts running as separate threads?