In the documentation of pythontex it lists a way to use latexmk to automatically detect changes etc..
It may be useful to explicitly mention in the documentation that it does not work on the first run (need manually run pythontex), and that there's a fix (#132).