modgc: Add mem_free()/mem_alloc() methods.

Return free/allocated memory on GC heap.
py: Strip extra new line after comments in headers

The majority of // comments for functions/definitions/... have no
new newline after them, but some do so unify this accorss headers.