This simple module implements a few popular (and unpopular) text readability metrics in Python. See the file itself for more details. The heuristics are not optimized for any particular language, and should work reasonably well for most Western European languages.
MIT licensed, because why not?
Other similar software (optimized for English):