Line 1653 assumes there will always be a leaderboard.

This section of code is also very centered on interactive use and will be very annoying if used as a batch processing.  In which case the submission should be returned.   I.e. this kind of interaction might make sense for the commandline but not the API.