updated timestamp python binding with subclasses,
fixed the hash function so there are less collisions