可読性をうんぬんするなら、

def isodd(x):
  if long(x) != x:raise ValueError,"整数よこせ"
  if x % 2 == 1:
    return 1
  else:
    raise ValueError,"偶数不可"

くらいしないとw