QuTiP is open-source software for simulating the dynamics of open quantum systems and optimal quantum control