Update latch.py

Add support for Python2
Merge pull request #4 from achillean/patch-1

Python 2 support