#NEWLINE# def MP( number ) : #NEWLINE# #INDENT# if ( number == 0 ) : #NEWLINE# #INDENT# return ( b'\x00' * 4 ) #NEWLINE# #UNINDENT# assert ( number > 0 ) #NEWLINE# bn = int_to_bytes ( number ) #NEWLINE# if ( ord ( bn [ 0 : 1 ] ) & 128 ) : #NEWLINE# #INDENT# bn = ( b'\x00' + bn ) #NEWLINE# #UNINDENT# return ( struct . pack ( '>L' , len ( bn ) ) + bn )