def _generate_oauth_nonce(cls, length=8): return ''.join([str(random.SystemRandom().randint(0, 9)) for _ in range(length)])