Refactor lightweight mode implementation

7 jobs for master in 4 minutes and 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Linting
passed #75295
bandit

00:00:28

passed #75298
mypy

00:00:49

passed #75297
pyflakes

00:00:22

passed #75296
pylint

00:01:08

 
  Test
passed #75301
whitewhale
tests:archlinux

00:01:40

failed #75299
tests:debian

00:01:15

passed #75300
whitewhale
tests:fedora

00:03:16

 
Name Stage Failure
failed
tests:debian Test
  File "/builds/jvoisin/mat2/tests/test_climat2.py", line 163, in test_flac
self.assertIn(b'comments: Thank you for using MAT !', stdout)
AssertionError: b'comments: Thank you for using MAT !' not found in b'[+] Metadata for ./tests/data/dirty.flac:\n album: harmfull\n artist: jvoisin\n[++] Metadata for Cover 0:\n Comment: Created with GIMP\n'

----------------------------------------------------------------------
Ran 82 tests in 42.935s

FAILED (failures=1)
ERROR: Job failed: exit code 1