Make is_simple_callable consider default arguments

I wanted to list all user permissions using get_all_permissions, which has an optional argument 'obj', but is_simple_callable was returning False. Therefore I modified this function to consider the amount of default arguments as well.