Python codes management