Revert "python port"

This reverts commit efe8785927326ec6b69434088cf6f2d0609c0eb2.
Revert "ignore pyc files"

This reverts commit 7adbfc8f2ea2d8476338d664a9fe5dc74ca2961a.