fix broken display of error messages in error.py

An integer was being passed to fontfx.shadow rather than a font object.