Using gil in initializer