more work on python plugin