fixed python3 issues with hashlib, changed from mock import to from test.mock import