Check input for Iterables instead of numeric types, PEP8,indentation,added comments