common/utilities: Fix max_python_mem_usage_bytes by removing staticmethod now that it uses self