Update problem007.py

Edit n to num in def is_prime