import hashlib


class Algorithms(object):
    NONE = 'none'
    HS256 = 'HS256'
    HS384 = 'HS384'
    HS512 = 'HS512'
    RS256 = 'RS256'
    RS384 = 'RS384'
    RS512 = 'RS512'
    ES256 = 'ES256'
    ES384 = 'ES384'
    ES512 = 'ES512'

    HMAC = set([HS256, HS384, HS512])
    RSA = set([RS256, RS384, RS512])
    EC = set([ES256, ES384, ES512])

    SUPPORTED = HMAC.union(RSA).union(EC)

    ALL = SUPPORTED.union([NONE])

    HASHES = {
        HS256: hashlib.sha256,
        HS384: hashlib.sha384,
        HS512: hashlib.sha512,
        RS256: hashlib.sha256,
        RS384: hashlib.sha384,
        RS512: hashlib.sha512,
        ES256: hashlib.sha256,
        ES384: hashlib.sha384,
        ES512: hashlib.sha512,
    }

    KEYS = {}


ALGORITHMS = Algorithms()

@@ -246,21 +246,17 @@
  HMAC = 
-set(%5B
+%7B
 HS256, H
@@ -262,26 +262,25 @@
 HS384, HS512
-%5D)
+%7D
 %0A    RSA = s
@@ -278,21 +278,17 @@
   RSA = 
-set(%5B
+%7B
 RS256, R
@@ -298,18 +298,17 @@
 4, RS512
-%5D)
+%7D
 %0A    EC 
@@ -313,13 +313,9 @@
 C = 
-set(%5B
+%7B
 ES25
@@ -329,18 +329,17 @@
 4, ES512
-%5D)
+%7D
 %0A%0A    SU

Replace function calls with set literals