Fixed exception raised during cache reading
Switched cache hashing to hashlib

In python 3.3 the hash function is returning different hashes during
different executions of the application.
Splitted import compatibility function definition for better readability
Simplified code for python 3.3 load_module implementation