String may be unicode when read from the cache if json is used.
Replaced str and unicode with basestring in type check
Merge pull request #19 from itkovian/timestamp

String may be unicode when read from the cache if json is used.
Version bump