Issue#161: Fix hanging reference to args on callbacks that lead to handle leakage in python, and couple of cleanups for turning on -O2