add pyc pattern to gitignore
Fix snprintf bug #49 by adding a scnprintf macro wrapper in common.h