Scrabbli solution in Python