how to check strong number in python