remove sys.py
allow closure creation on extern static inline methods (closes #2813)
remove python special case in TestMisc