add rewrite to local python server (testing)
write based on first node in path