Python Round Robin Database Implementation