update state.md and add two python impls: proxy and state