MIAMI, May 2 (Reuters) - Formula One handed Miami the longest race contract in the sport on Friday, securing the grand prix until 2041 with a 10-year extension on top of an existing decade-long deal.