Convert Python code from Python format to s-expressions for easier parsing