AttributeError: 'module' object has no attribute
You can't add properties to bge.logic.

To get this to work in the game engine, add a game property to the object and adjust your script to get the controller to access the property.

import bge

cont = bge.logic.getCurrentController()

input = []
for i in range(2):
    input.append([])
    for ii in range(cont['DnpolymeraseNum']):
        if i == 1:
            input[i].append([0,0,0,0,0,0])
        if i == 0:
            input[i].append([0,0,0,0,0,0,0,0])`