Thanks code now seems to work
#------------------------------------------------------------------------------
import pygame
#------------------------------------------------------------------------------
from App_Class import *
#------------------------------------------------------------------------------
def main():
 retValue = pygame.mixer.pre_init(frequency=22050, size=-16, channels=2, buffer=4096)
ÂÂ
 pygame.init()
 if retValue == None:Â
  print ("Warning, sound disabled")
 app = AppClass ()
 app.run ()
#------------------------------------------------------------------------------
#this calls the 'main' function when this script is executed
if __name__ == '__main__': main()
#------------------------------------------------------------------------------