hi, i'm not not sure how to solve your problem using JTR, but with aircrack-ng you can specify the words filename as - to tell it to read passwords from STDIN:
Code:./your_script.py | aircrack-ng [your options] -w - capfile.cap
this bash shell script code should do what you want (Change the two instances of /your/dict/file to the location of the dictionary file u want to use ofcourse):
hthCode:( cat /your/dict/file | while read word1; do cat /your/dict/file | while read word2; do echo "$word1$word2" done; done ) | aircrack-ng [your options] -w - capfile.cap


