Using timestamp from redis to avoid time-sync issues across servers
PEP8 style changes