Yes I changed it:
import sys
px, vw = map(float, sys.argv[1].split('/'))
result = (px/vw) * 100
if result == int(result):
sys.stdout.write('%d' % result)
else:
sys.stdout.write('%.1f' % result)
But still do not know, why I cannot have 2 arguments, it only works with one.