I'm not sure that I understood your problem well, it seems you want to parse two ints separated from space.
In python you do:
s = raw_input('Insert 2 integers separated by a space: ')
a,b = [int(i) for i in s.split(' ')]
print a*b
Explanation:
s = raw_input('Insert 2 integers separated by a space: ')
raw_input takes everything you type (until you hit enter) and return it as a string, so:
>>> raw_input('Insert 2 integers separated by a space: ')
Insert 2 integers separated by a space: 10 12
'10 12'
In s you are now "10 12", two ints are separated by a space, we split the string in space using
>>> s.split(' ')
['10', '12']
now you have a list of strings you want to convert to int, therefore:
>>> [int(i) for i in s.split(' ')]
[10, 12]
(a b), a * b