py-snapshot rewrite to golang