use None instead of date.max
show parties from 2012
move POSITION_CATEGORY_TITLE to python code
calculate and display loyalty by position
use subquery for mandates
remove old print statement
calculate loyalty by mandate count
refactor loyalty data format
separate function to calculate party loyalty