Simplified _fake_prepare_request and reordered imports