error check on pygame import