Do not depend on deprecated md5

Change the filters `latex` and `music` to avoid depending on a deprecated module.

Module `hashlib` exists since Python 2.5.
https://docs.python.org/2/library/hashlib.html