https://raw.githubusercontent.com/jancc/vma-extractor/master/vma.py