I have a piece of written code, 

```
class Corpus:
    def __init__(self):
        return self

    def __iter__(self):
        return self

    def __next__(self):
        return self

    def getwords():
        pass
if __name__ == "__main__":

    texts = []
    if len(sys.argv) >= 2:
        for filename in sys.argv[1:]:
            texts.append(str(filename))
    else:
        print("Error!", sys.stderr())

    removables = [".", ",", "!", "?", "(", ")"]

    text = ""
    for filename in texts:
        with open(filename) as f:
            for line in f:
                text += line
    words = text.lower().split()

    allwords = {}
    for word in words:
        for removable in removables:
            if removable in word:
                word = word.replace(removable, "")
        if word in allwords:
            allwords[word] += 1
        else:
            allwords[word] = 1
    print(allwords)

    wordsearch = input("Enter word to search : ")
    filesearch = input("Enter file to search in: ")
    with open(filesearch) as f2:
        for line in f2:
            if wordsearch in line:
                print(line)

    wordsunique = len(allwords)
    wordtotal = len(words)
    filetotal = len(texts)

    print("Total number of words: ", wordtotal)
    print("Total number of unique words: ", wordsunique)
    print("Total number of files: ", filetotal)

```

It's a simple wordcounter. I would like to, however, rather put the sections that determine the filename and word to search for into a class so that the code os reusable for a bigger project I'm working on. Could anyone point me in the right direction?