added summary in README and added a python function