Fixed minor bugs in generate_Ajobs.py.