def align_file_position(f, size):
 align = ((size - 1) - (f.tell() % size))
 f.seek(align, 1)

def align_file_position ( f , size ) : align = ( ( size - 1 ) - ( f . tell ( ) % size ) ) f . seek ( align , 1 )
align the position in the file to the next block of specified size .