For some practical examples:
There is an implementation of "naivechain" (a very, very simple blockchain, originally written in JavaScript) in Python:
https://github.com/alexyer/naivechain.pyAlso, "
Bitcoins the hard way", may be useful for you. It consists of very small python scripts that do basic Bitcoin tasks like the sending of a transaction.