python: improved docs, support for kwargs to methods and sets sys.argv