Start implementing python version

Finished -c function.