so, while working with the pygame module, i found out that 'pygame.mixer.init()' generates an error. The module which i'm using had the 'pygame.mixer.init()' in it and i had to remove the line to use it.
Okay, so repl.it uses x11-vnc, and the
vnc protocol doesn't allow audio (https://stackoverflow.com/questions/21246859/x11vnc-is-it-possible-to-send-the-intern-sound-of-host-to-client). That's why it's failing. At least, that's what I think :/