Python script to display information from table