Python Pymysql Range Redis Database Replication