Python exercise with Dorm7