
try:
    from jose.backends.pycrypto_backend import RSAKey
except ImportError:
    from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey

try:
    from jose.backends.cryptography_backend import CryptographyECKey as ECKey
except ImportError:
    from jose.backends.ecdsa_backend import ECDSAECKey as ECKey


try:
    from jose.backends.pycrypto_backend import RSAKey
except ImportError:
    try:
        from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
    except ImportError:
        from jose.backends.rsa_backend import RSAKey

try:
    from jose.backends.cryptography_backend import CryptographyECKey as ECKey
except ImportError:
    from jose.backends.ecdsa_backend import ECDSAECKey as ECKey

Enable Python RSA backend as a fallback.
Enable Python RSA backend as a fallback.

  
  try:
      from jose.backends.pycrypto_backend import RSAKey
  except ImportError:
+     try:
-     from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
+         from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
+     except ImportError:
+         from jose.backends.rsa_backend import RSAKey
  
  try:
      from jose.backends.cryptography_backend import CryptographyECKey as ECKey
  except ImportError:
      from jose.backends.ecdsa_backend import ECDSAECKey as ECKey
  
Enable Python RSA backend as a fallback.
## Code Before:

try:
    from jose.backends.pycrypto_backend import RSAKey
except ImportError:
    from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey

try:
    from jose.backends.cryptography_backend import CryptographyECKey as ECKey
except ImportError:
    from jose.backends.ecdsa_backend import ECDSAECKey as ECKey

## Instruction:
Enable Python RSA backend as a fallback.
## Code After:

try:
    from jose.backends.pycrypto_backend import RSAKey
except ImportError:
    try:
        from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
    except ImportError:
        from jose.backends.rsa_backend import RSAKey

try:
    from jose.backends.cryptography_backend import CryptographyECKey as ECKey
except ImportError:
    from jose.backends.ecdsa_backend import ECDSAECKey as ECKey
