use insert to prepend
@@ -141,7 +141,7 @@ class PoseidonShell(cmd.Cmd):
endpoint.endpoint_data['ipv6'],
endpoint.p_next_state])
matrix = sorted(matrix, key=lambda endpoint: endpoint[2])
- matrix.prepend(['Name', 'State', 'MAC Address', 'Segment',
+ matrix.insert(0, ['Name', 'State', 'MAC Address', 'Segment',
'Port', 'VLAN', 'IPv4', 'IPv6', 'Next State'])
table = Texttable(max_width=0)
# make all the columns types be text
