"Max retries exceeded" error when running real device test using Python