try and fix error with unused Python code