try to improve things in Python code...