The official resources to read from:
1. https://devguide.python.org/garbage_collector/
2. https://docs.python.org/3/library/gc.html
gc.enable()
Enable automatic garbage collection.
gc.disable()
Disable automatic garbage collection.
gc.isenabled()
Return True if automatic collection is enabled.
gc.collect(generation=2)
get_threshold()
returns threshold limit, in order to decide for a GC trigger, for each of the 3 generations
Other References:
https://stackoverflow.com/a/4484312
http://arctrix.com/nas/python/gc/
http://cms.digi.com/resources/documentation/digidocs/90001537/#References/r_Python_garbage_coll.htm?Highlight=garbage