Given two strings A and B, construct a Python program to determine if B is a substring of A.
A = "I am here" 
B = "here"
def is_substring(A, B): 
    if B in A: 
        return True 
    else: 
        return False