Improve pmdastap_json.python by doing lots of code cleanup/refactoring.
Improve pmdastap_json.python by doing lots of code cleanup/refactoring.

aeg-aeg/pcpfans,tjanez/pcp,wuliming/pcp,adfernandes/pcp,edwardt/pcp,aeg-aeg/pcpfans,tjanez/pcp,adfernandes/pcp,tjanez/pcp,aeg-aeg/pcpfans,tjanez/pcp,edwardt/pcp,edwardt/pcp,adfernandes/pcp,edwardt/pcp,adfernandes/pcp,aeg-aeg/pcpfans,prasincs/pcp,prasincs/pcp,adfernandes/pcp,adfernandes/pcp,aeg-aeg/pcpfans,prasincs/pcp,tjanez/pcp,tjanez/pcp,edwardt/pcp,edwardt/pcp,wuliming/pcp,wuliming/pcp,edwardt/pcp,tjanez/pcp,wuliming/pcp,prasincs/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,aeg-aeg/pcpfans,prasincs/pcp,prasincs/pcp,prasincs/pcp,adfernandes/pcp,adfernandes/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,prasincs/pcp,tjanez/pcp,edwardt/pcp,wuliming/pcp