Added compatibility with python 3

1. Added compat file
2. Added __lt__ function to ImageMeta
3. Open file with 'rb' to avoid decode error in python3