userprofile.py outputs json instead of csv