Instead of time.sleep, can you try world.wait_for_ajax_complete()?