You are testing for an integer, put are passing in a string.
They may print the same, but integers and strings never test as equal in Python. Test for the string instead:
if input == '0':
Because your if input == 0
fails for input = '0'
, your function never reaches a return
statement, leaving Python to return the default None
instead.