import datetime
import random
ProductCode = {
'Xmanager' : 0,
'Xshell' : 1,
'Xlpd' : 2,
'Xfile' : 3,
'Xftp' : 4,
'Xmanager 3D' : 5,
'Xmanager Enterprise' : 6,
'Xshell Plus' : 7
}
LicenseType = [
[ ProductCode['Xmanager'], 0x0B, 0, 'Standard', 2],
[ ProductCode['Xmanager'], 0x0C, 0, 'Educational', 2],
[ ProductCode['Xmanager'], 0x0F, 0, 'Standard', 1],
[ ProductCode['Xmanager'], 0x10, 0, 'Educational', 1],
[ ProductCode['Xmanager'], 0x16, 2, 'Student 2-year Subscription', 2],
[ ProductCode['Xmanager'], 0x18, 4, 'Student 4-year Subscription', 2],
[ ProductCode['Xmanager'], 0x20, 2, 'Student 2-year Subscription', 1],
[ ProductCode['Xmanager'], 0x22, 4, 'Student 4-year Subscription', 1],
[ ProductCode['Xmanager'], 0x3D, 0, 'Standard Subscription', 2],
[ ProductCode['Xmanager'], 0x3E, 0, 'Educational Subscription', 2],
[ ProductCode['Xmanager'], 0x41, 0, 'Standard Subscription', 1],
[ ProductCode['Xmanager'], 0x42, 0, 'Educational Subscription', 1],
[ ProductCode['Xmanager'], 0x47, 0, 'Standard Subscription', 2], # Concurrent Registered
[ ProductCode['Xmanager'], 0x48, 0, 'Educational Subscription', 2], # Concurrent Registered
[ ProductCode['Xmanager'], 0x4B, 0, 'Standard Subscription', 1], # Concurrent Registered
[ ProductCode['Xmanager'], 0x4C, 0, 'Educational Subscription', 1], # Concurrent Registered
[ ProductCode['Xmanager'], 0x51, 0, 'Standard', 2], # Concurrent Registered
[ ProductCode['Xmanager'], 0x52, 0, 'Educational', 2], # Concurrent Registered
[ ProductCode['Xmanager'], 0x55, 0, 'Standard', 1], # Concurrent Registered
[ ProductCode['Xmanager'], 0x56, 0, 'Educational', 1], # Concurrent Registered
[ ProductCode['Xmanager'], 0x60, 0, 'Standard', 1],
[ ProductCode['Xmanager'], 0x61, 0, 'Standard', 2],
[ ProductCode['Xmanager'], 0x62, 0, 'Standard', 1],
[ ProductCode['Xmanager'], 0x63, 0, 'Standard', 2],
[ ProductCode['Xmanager'], 0x29, 1, 'CLS Class A', 2],
[ ProductCode['Xmanager'], 0x2A, 1, 'CLS Class B', 2],
[ ProductCode['Xmanager'], 0x2B, 1, 'CLS Class C', 2],
[ ProductCode['Xmanager'], 0x2C, 1, 'DLS', 2],
[ ProductCode['Xmanager'], 0x2D, 1, 'SLS', 2],
[ ProductCode['Xmanager'], 0x33, 1, 'CLS Class A', 1],
[ ProductCode['Xmanager'], 0x34, 1, 'CLS Class B', 1],
[