I think it really depends on the project. Stored procs are really nice for a lot of different use-cases, but one major downside is that they can be challenging to version control.
Storing this sort of stuff outside of the database with the Python project itself would make version control trivially easy.