refactored jtalk.py