'NoneType' object has no attribute 'count' <-- Anagrams : #**I have this error but I don't know why**

    import itertools
    word = 'stop'
    #input('Word [ 2-5 letters recommended ] :').lower()
    word = list(str(word))
    anagrams = ["".join(perm) for perm in itertools.permutations(word)]
    file = open('wordlist.txt', 'r')
    lines = file.read().split('\n')
    for n, i in enumerate(anagrams):
    			if i not in lines:
            			anagrams[n] = '/'
    for i in enumerate(anagrams):
    	if '/' in anagrams:
    		while anagrams.count('/') > 0:
    			anagrams = anagrams.remove('/')
    			
    anagrams = '\n'.join(map(str,anagrams))
    print(anagrams.strip(''))

##Error:

    Traceback (most recent call last):
      File "main.py", line 13, in <module>
        while anagrams.count('/') > 0:
    AttributeError: 'NoneType' object has no attribute 'count'

Is there anything I am doing wrong?
Help!!!!!!!

##[Link for my main code][1]


  [1]: https://repl.it/@panniu/Anagrams