[#33,any.py][s]: reduce dependency on magic library (see #33 for details of why).