Delete poolname.txt

use http://drk.poolhash.org/blocks/poolname.json



#!/usr/bin/python
import simplejson

###
finpooladd     = open("/dev/shm/poolname.json", "r")
rlstfinpooladd = finpooladd.read()
rlstpooladd    = simplejson.loads(rlstfinpooladd)
finpooladd.close()

def get_poolname(x):
    if x in rlstpooladd:
       return rlstpooladd[x]
    else:
       return x

print get_poolname('XuuQ1iiFfZLSjz1qDjq9XLzBAgLiSxBy3S')
print get_poolname('X')