created pycard.py and wrote basic functions