Modified profiling options in python implementation.