Rewrite so it's more pythonstic

* Use endswith/startswith rather than dealing witht the file itself.
* Include ta3reef_al, which is a regex that indicates the different forms of al.
* Move the standalone script-specific variables and processing into a __name__ == '__main__'   if clause.
* Add suggestions as FIXME, request of elaboration as TODO.