diff --git a/Trigger/TrigMonitoring/TrigIDTPMonitor/CMakeLists.txt b/Trigger/TrigMonitoring/TrigIDTPMonitor/CMakeLists.txt
index 7063098e95809e71b615514286ab49fe83b8bfeb..422cbcc62c66225c98442bf7f3f825726a939627 100644
--- a/Trigger/TrigMonitoring/TrigIDTPMonitor/CMakeLists.txt
+++ b/Trigger/TrigMonitoring/TrigIDTPMonitor/CMakeLists.txt
@@ -1,32 +1,13 @@
-################################################################################
-# Package: TrigIDTPMonitor
-################################################################################
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+
 # Declare the package name:
 atlas_subdir( TrigIDTPMonitor )
 
-# Declare the package's dependencies:
-atlas_depends_on_subdirs( PRIVATE
-                          Control/AthLinks
-                          Event/EventInfo
-                          Event/xAOD/xAODEgamma
-			  Event/xAOD/xAODCaloEvent
-                          Event/xAOD/xAODEventInfo
-                          Event/xAOD/xAODMuon
-                          Event/xAOD/xAODTracking
-                          Event/xAOD/xAODTrigBphys
-                          GaudiKernel
-                          Trigger/TrigConfiguration/TrigConfHLTData
-                          Trigger/TrigEvent/TrigBphysicsEvent
-                          Trigger/TrigEvent/TrigParticle
-                          Trigger/TrigEvent/TrigSteeringEvent
-                          Trigger/TrigSteer/TrigInterfaces )
-
 # Component(s) in the package:
 atlas_add_component( TrigIDTPMonitor
                      src/*.cxx
                      src/components/*.cxx
-                     LINK_LIBRARIES AthLinks EventInfo xAODEgamma xAODCaloEvent xAODEventInfo xAODMuon xAODTracking xAODTrigBphys GaudiKernel TrigConfHLTData TrigBphysicsEvent TrigParticle TrigSteeringEvent TrigInterfacesLib )
+                     LINK_LIBRARIES AthLinks EventInfo GaudiKernel TrigConfHLTData TrigInterfacesLib TrigSteeringEvent xAODCaloEvent xAODEgamma xAODEventInfo xAODMuon xAODTracking xAODTrigBphys )
 
 # Install files from the package:
-atlas_install_python_modules( python/*.py )
-
+atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
diff --git a/Trigger/TrigMonitoring/TrigIDTPMonitor/python/TrigIDTPMonitorConfig.py b/Trigger/TrigMonitoring/TrigIDTPMonitor/python/TrigIDTPMonitorConfig.py
index bb9fc1d7cd9d2fa909a3c6c6cccac7034e7d43dc..b6b48eea8b8dbdc1a68762bd5b83eba134602d82 100644
--- a/Trigger/TrigMonitoring/TrigIDTPMonitor/python/TrigIDTPMonitorConfig.py
+++ b/Trigger/TrigMonitoring/TrigIDTPMonitor/python/TrigIDTPMonitorConfig.py
@@ -1,9 +1,7 @@
-# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 from TrigIDTPMonitor.TrigIDTPMonitorConf import TrigIDTPMonitor, TrigIDTPMonitorElectron
 
-from AthenaCommon.AppMgr import ToolSvc
-
 class IDTPMonitor (TrigIDTPMonitor):
     __slots__ = []
     def __init__(self, name = "IDTPMonitor"):