I've figured out the problem; I had called pygame.init() in both files, which I didn't realize was unnecessary and broke the code.
pygame.init()