added PROTOX2D python class code