import sys
import time
import ctypes


def RL(a, b):
    for c in range(0, len(b)-2, 3):
        d = b[c+2]
        d = ord(d) - 87 if d >= 'a' else int(d)
        xa = ctypes.c_uint32(a).value
        d = xa >> d if b[c+1] == '+' else xa << d
        a = a + d & 4294967295 if b[c] == '+' else a ^ d
    return ctypes.c_int32(a).value


def calc_tk(a):
    b = int(time.time() / 3600)
    if sys.version_info >= (3,):
        d = a.encode('utf-8')
    else:
        d = map(ord, a)
    a = b
    for di in d:
        a = RL(a + di, "+-a^+6")
    a = RL(a, "+-3^+b+-f")
    a = a if a >= 0 else ((a & 2147483647) + 2147483648)
    a %= pow(10, 6)
    return '%d.%d' % (a, a ^ b)

if __name__ == '__main__':
    text = ' '.join(sys.argv[1:])
    print(calc_tk(text))

@@ -1,12 +1,22 @@
+import re%0A
 import sys%0Ai
@@ -25,26 +25,450 @@
 ort 
-time%0Aimport ctypes
+ctypes%0Atry:%0A    import urllib2 as request%0Aexcept:%0A    from urllib import request%0A%0A%0Adef get_d1():%0A    req = request.Request(url='http://translate.google.com/', headers=%7B'User-Agent': 'Mozilla/5.0'%7D)%0A    t = request.urlopen(req).read().decode('utf8')%0A    a, b, h = re.search(r%22TKK=eval%5C(%5C'%5C(%5C(function%5C(%5C)%7Bvar a%5C%5Cx3d(%5C-?%5Cd+);var b%5C%5Cx3d(%5C-?%5Cd+);return (%5Cd+)%22, t).groups()%0A    return int(h), ctypes.c_int32(int(a) + int(b)).value%0Ab, d1 = get_d1()
 %0A%0A%0Ad
@@ -785,40 +785,8 @@
 a):%0A
-    b = int(time.time() / 3600)%0A
     
@@ -965,16 +965,53 @@
 +b+-f%22)%0A
+    a = ctypes.c_int32(a %5E d1).value%0A
     a = 

change algorithm to compute tk