Jazz, race and an unlikely friendship inspire the new film about navigating Jim Crow America