Hylang version of avgsize.py Python script