re-add before-install for python-magic

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>