fixed the main loop in test.py
removed the dim3_array() method in code_tools