I m not familiar with python and I want to convert below code from C# to python
 Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse)
    public class StatisticsItem
    {
        public string name { get; set; }
        public string home { get; set; }
        public string away { get; set; }
        public int compareCode { get; set; }
    }
    public class Group
    {
        public string groupName { get; set; }
        public List<StatisticsItem> statisticsItems { get; set; }
    }
    public class Statistic
    {
        public string period { get; set; }
        public List<Group> groups { get; set; }
    }
    public class Root
    {
        public List<Statistic> statistics { get; set; }
    }
the aim is to convert a JSON flat file to an object i m able to do it with C# but I had some difficulty to do it in python