Python: How do I write a function that takes in a hash table size and a string ONLY and then returns the index for that string in the hash table?