Python port of HEVC HM