Improve python project type detection.