Removed unused Python code