You can have the forward function return the hidden state as well as the output state and then pass it back into the function every time.
#INITIALIZE HIDDEN STATE OUTSIDE OF LOOP
def forward(self, input, hidden):
  
   #FORWARD PASS HERE
   return output, hidden

then each time you can just pass the returned hidden back into the forward function.