Add another implementation of compress() — using itertools.groupby()
Fix UnboundLocalError if len(string) < 2
Return original string if compression does not make it smaller
Rename variable to 'str_' — it is also the name of a module
Replace string accumulation with str.join()