In Java/C# you can easily step through code to trace what might be going wrong, and IDE\'s make this process very user friendly.
Can you trace through python code in
https://wiki.python.org/moin/PythonDebuggingTools
pudb is a good drop-in replacement for pdb