add config directory for PyCharm and .gitignore.
add sample.py