set dispatch incorrectly added to python 3 section

On python 3 the hashing module was throwing an error due to the fact the dispatch variable was only instantiated on version < 3

Moved set dispatch into existing section for non python 3 code