Update main and manage py