Check out this article on using Python to automate SQLi with SQLMAP!
https://pen-testing.sans.org/blog/2017/10/13/sqlmap-tamper-scripts-for-the-win
https://pen-testing.sans.org/blog/2017/10/13/sqlmap-tamper-scripts-for-the-win
This is a collection of Articles, Tools, Conference talks, interviews, etc by Mark Baggett