my solution for the Google Python exercise "baby names"