Pure python implementation of identifying files based off their magic numbers