Define GETTER helper macro

To save typing, and increase coding consistency.
Define the METHOD macro and deploy it
travis: drop 3.1 since travis does not support it anymore