At the start of the push_file method of the Slurm class, the sftp_client.mkdir paramiko method is called. This method will only create a single directory level which does not exit.
Recursively creating directories would allow the channel to be used to easily push files to nested directories.