Compile python classes