Staying safe while using third-party packages in Python